Skip to content

Conversation

@luislard
Copy link
Contributor

@luislard luislard commented Nov 28, 2023

This pull request fixes issue #.

What's Included in This Pull Request

  • Add support for psr/log 2 and 3
  • Copied TestLogger class since it is not possible to support importing it for php7 and php8 in the same composer.json
  • Enhancements in the Giihub workflows.
  • Removed coverage since it was hardcoded to PHP 7.4.

Aditional information

Supporting 3 versions of psr/log is making composer incapable to resolve to version 2 in the tests.

I ran PHPUnit tests in my local using nektos/act modifying composer.json to see the results and it passes.

act --workflows .github/workflows/php-unit-tests.yml push

The min version required of monolog has to be 2.0.1 because the BufferHandler does not meet the interface FormattableHandlerInterface see:

Seldaek/monolog@f9d56fd

Let me know your thoughts.

@gmazzap
Copy link
Contributor

gmazzap commented Jun 9, 2025

We can retire this. The entire work has been done for v3.

@gmazzap gmazzap closed this Jun 9, 2025
@gmazzap gmazzap deleted the 2.x-psr_log_and_php_multi_compat branch June 9, 2025 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants